package com.leyantech.ecp.agenx.common.entity;

import lombok.Getter;
import org.apache.commons.lang3.ObjectUtils;

import java.util.Collections;
import java.util.List;

/**
 * @author eahau, {@literal <yixiao.wang@leyantech.com>}
 * @date 2021-12-09.
 */
@Getter
public class HelaStoreSubscribeDto {

  private String platform;
  private long serviceEndsAt;
  private String subscribeStatus;
  private List<String> productNames;

  public List<String> getProductNames() {
    return ObjectUtils.defaultIfNull(productNames, Collections.emptyList());
  }
}
